<a href='add.php' >添加内容</a><hr>
<?php
	include("conn.php");	
	$sql = "select * from news order by id desc limit 10";
	
	$query = mysql_query($sql);
	
	while($rs = mysql_fetch_array($query))
	{
?>
<h2>标题： <?php echo $rs['title'] ?> 
	<a href="edit.php?id=<?php echo $rs['id'] ?>">|编辑|</a> 
	<a href="del.php?del=<?php echo $rs['id'] ?>">|删除|</a></h2>
<li><?php echo $rs['dates'] ?></li>
<p><?php echo $rs['contents'] ?></p>
<hr>

<?php
	}
?>